package domain;

import java.util.Date;

public class Chapter {
    int cid;
    int bid;
    String name;
    String content;
    Date updatedTime;

    public Chapter(int cid, int bid, String name, String content, Date updatedTime) {
        this.cid = cid;
        this.bid = bid;
        this.name = name;
        this.content = content;
        this.updatedTime = updatedTime;
    }

    public Chapter() {
    }

    public int getCid() {
        return cid;
    }

    public Chapter setCid(int cid) {
        this.cid = cid;
        return this;
    }

    public int getBid() {
        return bid;
    }

    public Chapter setBid(int bid) {
        this.bid = bid;
        return this;
    }

    public String getName() {
        return name;
    }

    public Chapter setName(String name) {
        this.name = name;
        return this;
    }

    public String getContent() {
        return content;
    }

    public Chapter setContent(String content) {
        this.content = content;
        return this;
    }

    public Date getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(Date updatedTime) {
        this.updatedTime = updatedTime;
    }

    @Override
    public String toString() {
        return "Capter{" +
                "cid=" + cid +
                ", bid=" + bid +
                ", name='" + name + '\'' +
                ", content='" + content + '\'' +
                ", updatedTime=" + updatedTime +
                '}';
    }
}
